﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

namespace BZZ.Web.ctrl
{
    public partial class ctrCata : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BZZ.DAL.cata dal = new BZZ.DAL.cata();
            DataSet dset = dal.GetDataset(" 1=1 order by sortid asc",null,"id,title,(select count(*) from bzz_blog where cataid=bzz_cata.id) as n");
            rptCata.DataSource = dset;
            rptCata.DataBind();
        }
    }
}